#ifndef NETWORKMANAGER_H
#define NETWORKMANAGER_H
#include <QObject>
#include "server.h"
class NetworkManager : public QObject
{
    Q_OBJECT
public:
    explicit NetworkManager(QObject *parent = 0);
signals:
    void recieveData(QString ip,QByteArray data);
    void notify(QString ip,int code);
public slots:
    void onSendData(QString ip,QByteArray data);
    void onCloseConnection(QString ip);
    void onRecieveData(QString ip,QByteArray data);
private:
    Server *server;

};
#endif // NETWORKMANAGER_H
